﻿<%@ Page Language="C#" MasterPageFile="~/Adminpages/Site2.Master" AutoEventWireup="true" CodeBehind="AAlbum.aspx.cs" Inherits="websoni.Adminpages.WebForm3" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    <br />
    <table class="style1">
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Album Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="tbalbum" runat="server"></asp:TextBox>
                <asp:TextBox ID="tbalid" runat="server" Visible="False"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbalbum" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Front Picture"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="uploadfront" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="uploadfront" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Old Front Picture" Visible="False"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="tbfront" runat="server" Visible="False" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnok" runat="server" Text="OK" onclick="btnok_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnupdate" runat="server" CausesValidation="False" 
                    onclick="btnupdate_Click" Text="Update" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" 
                    GridLines="Both" RepeatColumns="5" style="text-align: center">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" Height="96px" 
                            ImageUrl='<%# "~/images/"+Eval("front") %>' Width="97px" />
                        <br />
                        <asp:HyperLink ID="HyperLink6" runat="server" 
                            NavigateUrl='<%# "~/Adminpages/APhotos.aspx?id="+Eval("alid") %>' 
                            Text='<%# Eval("album_name") %>'></asp:HyperLink>
                        <br />
                        <asp:Button ID="btnedit" runat="server" CausesValidation="False" 
                            CommandArgument='<%# Eval("alid") %>' CommandName="Edit" 
                            oncommand="btnedit_Command" Text="Edit" />
                        <asp:Button ID="btndelete" runat="server" CausesValidation="False" 
                            CommandArgument='<%# Eval("alid") %>' CommandName="Delete" 
                            oncommand="btndelete_Command" Text="Delete" />
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
</p>
<p>
</p>
</asp:Content>
